#ifndef __cpart__
#define __cpart__

#include <vector>

class CElement;

class CPart {
	static long now_max_id;
	long part_id;
	double due_time;
	int final_part_type;
	CElement* now_place;
	std::vector<int> doneOperations;
	double lastOpTime;//记录最后被操作的时间
public:
	int getFinalType();
	double getDueTime();
	void AddOperation(int op);
	void setFinalType(int tp);
	void setDueTime(double dt);
	double getLastOpTime();
	void setLastOpTime(double ot);
	CPart();
	~CPart();

};
#endif // __cpart__
